<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>参与投票页</title>
    <style type="text/css">
    body{text-align: center;}
    html,body{ width:90%; height:90%;text-align: center;margin-left:auto;margin-right:auto;}
    div#container{width:100%;text-align: center;margin:0 auto;}
    div#header {background-color:#99bbbb;}
    </style>
</head>
<body>
    <div id="container">
        <div id="header">
            <h1>Main Title of Web Page</h1> <a href="index.php">返回首页</a>
        </div>
        <form enctype="multipart/form-data"  method="post" action='http://www.letian.com/upload.php?<?php echo $voteId;?>'>
            <div>
                <label>投票名称：</label>
                <?php echo $row['name'];?>
            </div>
            <div>
                <label>上传图片：</label><input type='file' name='img'>
            </div>
            <div><input type='hidden' name='topicId' value='<?php echo $voteId;?>'></div>
            <div><input type='submit' value='提交'></div>
        </form>

        <div id="footer">Copyright letian</div>
    </div>
</body>
</html>
